using System;
using TTDotNet.Engine;
using Microsoft.DirectX;

namespace TTDotNet.Util
{
    public class Location
    {
        private float x;
        private float y;
        private float z;

        public Location()
        {
            this.x = 0.0f;
            this.y = 0.0f;
            this.z = 0.0f;
        }

        public Location(float xLoc, float yLoc, float zLoc)
        {
            this.x = xLoc;
            this.y = yLoc;
            this.z = zLoc;
        }

        public float GetX()
        {
            return x;
        }

        public float GetY()
        {
            return y;
        }

        public float GetZ()
        {
            return z;
        }

        public void SetX(float newX)
        {
            this.x = newX;
        }

        public void SetY(float newY)
        {
            this.y = newY;
        }

        public void SetZ(float newZ)
        {
            this.z = newZ;
        }

        public Vector3 ToVector()
        {
            return new Vector3(x, y, z);
        }

        public override string ToString()
        {
            return "(" + x + "," + y + "," + z + ")";
        }

    }
}
